package ooExercise.ooday02;

public class Teacher extends Person{
    double salaye;
    Teacher(String name,int age,String address,double salaye){
        super(name,age,address);
        this.salaye=salaye;
    }
    void study(){
        System.out.println(name+"老师正在教学上打游戏");
    }
    void eat(){
        System.out.println(name+"老师一边嘎嘎炫饭，一边说我的工资有："+salaye);
    }
    void sayHi(){
        System.out.println("大家好,我叫"+name+",今年"+age+"岁了,家住："+address+",我的工资有"+salaye);
    }

}
